﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Enterprise.Service.Kaifabu
{
    /// <summary>
    /// 单位
    /// </summary>
    public class DanweiService
    {
        private readonly Enterprise.Data.Kaifabu.DanweiData dal = new Data.Kaifabu.DanweiData();

        /// <summary>
        /// 数据列表
        /// </summary>
        /// <param name="strWhere"></param>
        /// <returns></returns>
        public System.Data.DataSet GetList(string strWhere)
        {
            return dal.GetList(strWhere);
        }

        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="dwmc"></param>
        /// <param name="dwmcru"></param>
        public void Add(string dwmc, string dwmcru)
        {
            dal.Add(dwmc, dwmcru);
        }

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="dwmc"></param>
        /// <param name="dwmcru"></param>
        /// <returns></returns>
        public bool Update(string dwmc, string dwmcru)
        {
            return dal.Update(dwmc, dwmcru);
        }
    }
}
